package com.zln.hello;

public class LogicOperator_Test {
    public static void main(String[] args){
        boolean x = true;
        boolean y = false;
        short z = 46;
        if ((z++ == 46) && (y = true))
            z++;
        if ((x = false) || (++z == 49))
            z++;
        System.out.println("z=" +z); //50
    }

    /**
     *  x->T  y->F  z = 46
     *  z = 47  y-> T z++ -> z= 48
     *  x->F ++z -> z= 49  z++ -> z= 50
     */
}
